package com.ruoyi.domain.inventory;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;

import java.math.BigDecimal;

/**
 * 库存信息对象 mes_inventory
 * 
 * @author ruoyi
 */
@Data
public class MesInventory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存ID */
    private Long inventoryId;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    private Long warehouseId;

    /** 仓库编码 */
    @Excel(name = "仓库编码")
    private String warehouseCode;

    /** 仓库名称 */
    @Excel(name = "仓库名称")
    private String warehouseName;

    /** 库位 */
    @Excel(name = "库位")
    private String location;

    /** 物料ID */
    @Excel(name = "物料ID")
    private Long materialId;

    /** 物料编码 */
    @Excel(name = "物料编码")
    private String materialCode;

    /** 物料名称 */
    @Excel(name = "物料名称")
    private String materialName;

    /** 规格型号 */
    @Excel(name = "规格型号")
    private String specification;

    /** 单位 */
    @Excel(name = "单位")
    private String unit;

    /** 批次号 */
    @Excel(name = "批次号")
    private String batchCode;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private BigDecimal quantity;

    /** 锁定数量 */
    @Excel(name = "锁定数量")
    private BigDecimal lockedQuantity;

    /** 可用数量 */
    @Excel(name = "可用数量")
    private BigDecimal availableQuantity;

    /** 状态（0正常 1锁定 2待检） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=锁定,2=待检")
    private String status;

    /** 库存状态（正常/冻结） */
    @Excel(name = "库存状态", readConverterExp = "正=常/冻结")
    private String inventoryStatus;
}